/**
 *
 */
package com.numericme.locale.switcher;

import android.app.Activity;
import android.view.MotionEvent;
import android.view.GestureDetector.SimpleOnGestureListener;


/**
 * @author NumericMe
 *
 */
public class GestureDetectorViewListener extends SimpleOnGestureListener
{

	@Override
	public boolean onDown(MotionEvent e) {
		activity.finish();
		return super.onDown(e);
	}

	@Override
	public boolean onDoubleTap(MotionEvent e) {
		return super.onDoubleTap(e);
	}

	private final Activity activity;

	public GestureDetectorViewListener(Activity activity)
	{
		this.activity = activity;
	}

}
